# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-plasma
pkgname=plasma-desktop-meta
pkgver=5.27.10
pkgrel=0
pkgdesc="Plasma (Base) meta package"
url="https://kde.org/plasma-desktop"
# riscv64, ppc64le, s390x and armhf blocked by qt5-qtwebengine -> plasma-desktop
arch="noarch !s390x !ppc64le !armhf !riscv64"
license="GPL-3.0-or-later"
depends="
	bluedevil
	breeze
	breeze-gtk
	breeze-icons5
	discover
	drkonqi
	font-noto
	kde-cli-tools
	kde-gtk-config
	kdeplasma-addons
	kgamma5
	khotkeys
	kinfocenter
	kio-fuse
	kmenuedit
	kscreen
	ksshaskpass
	kwallet-pam
	kwayland-integration
	maliit-keyboard
	oxygen-sounds
	pinentry-qt
	plasma-browser-integration
	plasma-desktop
	plasma-disks
	plasma-firewall
	plasma-nm
	plasma-pa
	plasma-systemmonitor
	plasma-thunderbolt
	plasma-vault
	plasma-workspace-wallpapers
	polkit-kde-agent-1
	powerdevil
	print-manager
	sddm-breeze
	sddm-kcm
	systemsettings
	udisks2
	xdg-desktop-portal-kde
	xdg-user-dirs
	"
subpackages="plasma-extras sddm-breeze:sddm_breeze"
_repo_url="https://invent.kde.org/plasma/plasma-desktop-meta.git"
source="sddm.conf"
options="!check" # No tests for a metapkg

provides="plasma=$pkgver-r$pkgrel"
replaces="plasma"

package() {
	mkdir -p "$pkgdir"
}

extras() {
	pkgdesc="Additional Plasma apps meta package"
	depends="
		breeze-grub
		breeze-plymouth
		oxygen
		plasma-sdk
		plymouth-kcm
		"

	mkdir -p "$subpkgdir"
}

sddm_breeze() {
	pkgdesc="Set Breeze theme for SDDM"
	depends="
		breeze
		qt5-qtvirtualkeyboard
		sddm
		"

	install -Dm644 "$srcdir"/sddm.conf "$subpkgdir"/etc/sddm.conf
}
sha512sums="
affbeec6d236bf09ae95b7bf478015ead9b5eabcffa8291107e34463bc3f7563c01d4e444e035b7eb575700e64c4da9f5079950b254b8c24b305845f031eb17f  sddm.conf
"
